#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{	
	int b = 0;
	scanf("%d", &b);
	int arr[] = { 1,2,3,4,5,6,7,8,9, };
	int a = 0;
	int sz = sizeof(arr) / sizeof(arr[0]);
	int left = 0;
	int right = sz - 1;
	int folt = 0;
	while (left <= right)
	{
		int mid = left + (right - left) / 2;
		if (mid < b)
		{
			left = mid + 1;
		}
		else if (mid > b) 
		{
			right = mid - 1;
		}
		else
		{
			folt = 1;
			printf("is%d\n", mid);
			break;
		}
	}
	if (folt == 0)
		printf("gg");
	return 0;
}